package com.android.server.mock.performer;

import android.os.Binder;
import android.os.mock.MockManager;

public abstract class MockPerformer<T> extends AbsPerformer<T> {

    public MockManager mockManager;

    protected MockPerformer() {
        mockManager = MockManager.getInstance();
    }

    public boolean needMock() {
        return needMock(Binder.getCallingUid());
    }

    public boolean needMock(int userId) {
        return mockManager.isPs(userId);
    }

    public abstract void initMock();

    public abstract void reset();

    String getPsInfo(String key) {
        return mockManager.getPsInfo(key);
    }

}